/**
 * FenetreMere.java
 */

package vue;

import modele.*;
import controleur.*;

/**
 * Représente l'écran d'acceuil de l'application.
 * @author sylvainc
 */
public class EcranAccueil extends Ecran {

    /**
     * Constructeur de la class EcranAccueil
     * @param mere de type FenetreMere
     * @see FenetreMere
     */
    public EcranAccueil(FenetreMere mere) {
        super(mere);
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        labTitre = new javax.swing.JLabel();
        btnCommencer = new javax.swing.JButton();
        labTexte = new javax.swing.JLabel();

        setBackground(new java.awt.Color(255, 255, 255));
        setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 204, 255), 2));
        setMaximumSize(new java.awt.Dimension(1024, 768));
        setMinimumSize(new java.awt.Dimension(1024, 768));
        setName("accueil"); // NOI18N
        setPreferredSize(new java.awt.Dimension(1024, 768));

        labTitre.setBackground(new java.awt.Color(255, 255, 255));
        labTitre.setFont(new java.awt.Font("Comic Sans MS", 1, 36));
        labTitre.setForeground(new java.awt.Color(255, 255, 255));
        labTitre.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        labTitre.setIcon(new javax.swing.ImageIcon(getClass().getResource("/vue/images/titre.png"))); // NOI18N
        labTitre.setFocusable(false);
        labTitre.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
        labTitre.setMaximumSize(new java.awt.Dimension(1024, 60));
        labTitre.setMinimumSize(new java.awt.Dimension(1024, 60));
        labTitre.setName("titre"); // NOI18N
        labTitre.setOpaque(true);
        labTitre.setPreferredSize(new java.awt.Dimension(1024, 85));

        btnCommencer.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        btnCommencer.setText("Commencer");
        btnCommencer.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btnCommencerActionPerformed(evt);
            }
        });

        labTexte.setFont(new java.awt.Font("Tahoma", 0, 18));
        labTexte.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        labTexte.setText("<html>\n   <body>\n      <center><h1>Bienvenue sur votre borne Creative Card!</h1></center>\n      <br/><br/><p>Insérez votre clé USB pour commencer la création de votre carte postal personnelle!</p>\n   </body>\n</html>");
        labTexte.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
        labTexte.setMaximumSize(new java.awt.Dimension(900, 600));
        labTexte.setMinimumSize(new java.awt.Dimension(900, 600));
        labTexte.setVerifyInputWhenFocusTarget(false);
        labTexte.setVerticalTextPosition(javax.swing.SwingConstants.TOP);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(labTitre, javax.swing.GroupLayout.PREFERRED_SIZE, 1000, Short.MAX_VALUE)
                            .addComponent(btnCommencer, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(56, 56, 56)
                        .addComponent(labTexte, javax.swing.GroupLayout.PREFERRED_SIZE, 900, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addComponent(labTitre, javax.swing.GroupLayout.DEFAULT_SIZE, 77, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(labTexte, javax.swing.GroupLayout.PREFERRED_SIZE, 595, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(31, 31, 31)
                .addComponent(btnCommencer, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        getAccessibleContext().setAccessibleName("titre");
    }// </editor-fold>//GEN-END:initComponents

     /**
     * Ecouteur pour le bouton "Commencer".
     * Indique au controleur que l'utilisateur souhaite Commencer
     * Pas de retour.
     * @param evt java.awt.event.ActionEvent
     */
    private void btnCommencerActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCommencerActionPerformed
        controleur.trAccueilSuivant();
    }//GEN-LAST:event_btnCommencerActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnCommencer;
    private javax.swing.JLabel labTexte;
    private javax.swing.JLabel labTitre;
    // End of variables declaration//GEN-END:variables

}
